package com.newland.util;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/4/3 16:56
 */
public class test {

  public static void main(String[] args) {

    BigDecimal bignum1 = new BigDecimal(10L);
    BigDecimal bignum2 = new BigDecimal(3L);
    BigDecimal bignum3 = null;


    bignum3 = bignum1.divide(bignum2,2,RoundingMode.HALF_UP);
    System.out.println(bignum3.doubleValue());
  }
}
